<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文件上传</title>
</head>
<body>
<h1>文件上传</h1>

<form action="/file/upload" enctype="multipart/form-data" method="post">
    <input name="dir" value="已选择的文件">
    <input name="file" type="file">
    <input type="submit" value="文件上传">
</form>


<br><br><br><br>
<h1>文件下载</h1>
<a href="http://localhost:8080/data/demo.html" download="demo.html">点击下载</a>
</body>
</html>
